﻿<%@ Page Language="C#" MasterPageFile="~/SiteAdmin/MasterTheme/Auto.master" AutoEventWireup="true" CodeFile="MsgBoardMan.aspx.cs" Inherits="MsgBoardMan"  %>
<%@ Register Assembly="xIx.Web.Portal" Namespace="xIx.Web.Portal" TagPrefix="DS" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Button ID="Button1" runat="server" Text="刷新" OnClick="Button1_Click" />
    <asp:Button ID="Button2" runat="server" Text="导出数据" OnClick="Button2_Click" />

    <asp:GridView DataKeyNames="ID" ID="GridView1" runat="server" DataSourceID="LSA" AutoGenerateColumns="False">
        <Columns>
            <asp:TemplateField HeaderText="查看">
                <ItemTemplate>
                    <asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Bind("IsReply") %>' Enabled="false" /><asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("ID", "MsgBoardReply.aspx?QID={0}") %>'
                        Target="_blank" Text="查看"></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作" ShowHeader="False">
                <ItemTemplate>
                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandArgument='<%# Eval("ID") %>'
                        CommandName="Delete" Text="删除"></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="QType" HeaderText="分类" />

            <asp:BoundField DataField="QUserTitle" HeaderText="留言人" />
            <asp:BoundField DataField="Title" HeaderText="标题" />
            <asp:BoundField DataField="QTextEx" HeaderText="内容" />
            <asp:BoundField DataField="QDate" DataFormatString="{0:yyyy-MM-dd HH:mm}" HeaderText="留言时间" />
        </Columns>
                <RowStyle BackColor="#EFF3FB" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" Height="25px"/>
        <EditRowStyle BackColor="#2461BF" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
    <DS:SimpleEventDS ID="LSA" runat="server" OnOnDeletingData="LSA_OnOnDeletingData"  OnOnLoadingData="LSA_OnLoadingData"></DS:SimpleEventDS>
</asp:Content>

